/*
 * 覆盖延伸项目查询列表Grid解析器
 */
Hxcy.main.fgys.Reader={
	fgysSearchReader:[{
		name:'address',
		mapping:'ADDRESS'
	},{
		name:'area',
		mapping:'AREA'
	},{
		name:'areaType',
		mapping:'AREATYPE'
	},{
		name:'bizNumber',
		mapping:'BIZNUMBER'
	},{
		name:'bsc',
		mapping:'BSC'
	},{
		name:'coverArea',
		mapping:'COVERAREA'
	},{
		name:'dataType',
		mapping:'DATATYPE'
	},{
		name:'emergencyLevel',
		mapping:'EMERGENCYLEVEL'
	},{
		name:'factory',
		mapping:'FACTORY'
	},{
		name:'id',
		mapping:'ID'
	},{
		name:'lat',
		mapping:'LAT'
	},{
		name:'liftNumber',
		mapping:'LIFTNUMBER'
	},{
		name:'liftSignal',
		mapping:'LIFTSIGNAL'
	},{
		name:'liftTopFloor',
		mapping:'LIFTTOPFLOOR'
	},{
		name:'lon',
		mapping:'LON'
	},{
		name:'mainSignal',
		mapping:'MAINSIGNAL'
	},{
		name:'name',
		mapping:'NAME'
	},{
		name:'netType',
		mapping:'NETTYPE'
	},{
		name:'newCreate',
		mapping:'NEWCREATE'
	},{
		name:'path',
		mapping:'PATH'
	},{
		name:'processInstanceId',
		mapping:'PROCESSINSTANCEID'
	},{
		name:'projectType',
		mapping:'PROJECTTYPE'
	},{
		name:'relatedCode',
		mapping:'RELATEDCODE'
	},{
		name:'remark',
		mapping:'REMARK'
	},{
		name:'resolveContent',
		mapping:'RESOLVECONTENT'
	},{
		name:'resolveMethod',
		mapping:'RESOLVEMETHOD'
	},{
		name:'siteName',
		mapping:'SITENAME'
	},{
		name:'siteNumber',
		mapping:'SITENUMBER'
	},{
		name:'telphone',
		mapping:'TELPHONE'
	},{
		name:'term',
		mapping:'TERM'
	},{
		name:'underParkCarNumber',
		mapping:'UNDERPARKCARNUMBER'
	},{
		name:'underParkNumber',
		mapping:'UNDERPARKNUMBER'
	},{
		name:'underParkSignal',
		mapping:'UNDERPARKSIGNAL'
	},{
		name:'uploadType',
		mapping:'UNLOADTYPE'
	}
	]
};

/*
 * 覆盖延伸项目查询列表Grid列模型
 */
Hxcy.main.fgys.Mapping={

	fgysSearchMapping:[{
		dataIndex:'bizNumber',
		header:'项目编号'
	},{
		dataIndex:'name',
		header:'项目名称'
	},{
		dataIndex:'address',
		header:'项目地址'
	},
	{
		dataIndex:'telphone',
		header:'联系电话'
	},
	{
		dataIndex:'lon',
		header:'经度'
	},
	{
		dataIndex:'lat',
		header:'纬度'
	},
	{
		dataIndex:'siteNumber',
		header:'站号'
	},
	{
		dataIndex:'siteName',
		header:'站名'
	}]
};


/*
 * 覆盖延伸项目查询列表Grid选择模型
 */
Hxcy.main.fgys.SM={
	fgysSearchSM:fgys.createSM(true)
};


/*
 * 覆盖延伸项目查询列表Grid列模型
 */
Hxcy.main.fgys.CM={
	fgysSearchCM:fgys.createCM('fgysSearch')
};

/*
 * 覆盖延伸项目查询列表数据存储器
 */
Hxcy.main.fgys.Store={
	fgysSearchStore:fgys.createStore({
		autoLoad:true,
		url:Hxcy.CPT+'/room/roomProject!list.action',
		beanName:'fgysSearch'
	})
};
fgys.putNS(['Reader','Mapping','SM','CM','Store']);


/*
 * 覆盖延伸覆盖延伸查询列表显示Grid展示数据
 */
Hxcy.main.fgys.Grid={
	fgysSearchGrid:{
		id:'h-fgys-search-grid',
		xtype:'grid',
		sm:fgys.get('fgysSearchSM'),
		cm:fgys.get('fgysSearchCM'),
		store:fgys.get('fgysSearchStore'),
		loadMask:true,
		stripeRows:true,
		viewConfig:{
			forceFit:true
		},
		listeners:{
			render:function(){
				
			}
		}
	}
};
fgys.putNS(['Grid']);

Ext.onReady(function(){
	var viewport=new Ext.Viewport({
		layout : 'fit',
		items : Hxcy.main.fgys.Grid.fgysSearchGrid
	});
});